package com.meituan.banma.account.request;

import com.alibaba.fastjson.JSON;
import com.meituan.banma.account.bean.AuthStatus;
import com.meituan.banma.common.net.listener.IResponseListener;
import com.meituan.banma.common.net.request.BaseRequest;

/**
 * 用户身份验证状态请求接口
 * Created by wangyapeng on 15/5/25.
 */
public class AuthStatusRequest extends BaseRequest {
    private static final String RELATIVE_URL = "rider/riderStatusWithReason";

    public AuthStatusRequest(IResponseListener listener) {
        super(RELATIVE_URL, listener);
    }

    @Override
    protected Object parseResponseDataField(String data) {
        return JSON.parseObject(data, AuthStatus.class);
    }
}
